﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1.App_Start.Extend
{
    public class ExtendCore
    {
        public static Action<Action, Action<Exception>> atExceptionAccept = (actToDo, actExceptionHandler) =>
        {
            try
            {
                actToDo.Invoke();
            }
            catch (Exception ex)
            {
                actExceptionHandler(ex);
            }
        };
    }
}